export PYTHONPATH=$PYTHONPATH:/home/xiaodd/njbyb-data-middle-office/

cd ui/bdmo/

npm run build

rm -rf /var/www/example.com/*
cp -r dist/* /var/www/example.com/

# kill all the old process
ps -ef | grep bdmo | grep -v grep | awk '{print $2}' | xargs -r sudo kill -9

cd ../..

cd servers

nohup /home/xiaodd/anaconda3/bin/python itemProfile.py &
nohup /home/xiaodd/anaconda3/bin/python labelManager.py &
nohup /home/xiaodd/anaconda3/bin/python platformManage.py &
nohup /home/xiaodd/anaconda3/bin/python ruleManage.py &

cd ../service
nohup /home/xiaodd/anaconda3/bin/python antiPoor.py &

